﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace ProjectThuCung.Models
{
    public class BinhLuanBaiViet
    {
        [Key]
        public int ID { get; set; }

        public int BaiVietID { get; set; }

        public int? UserId { get; set; }

        [Required]
        [MaxLength(56)]
        [Display(Name = "Tên người bình luận")]
        public String UserName { get; set; }

        [Required]
        [MaxLength(2000)]
        [Display(Name = "Nội dung bình luận")]
        public String NoiDung { get; set; }

        [Required]
        [Display(Name = "Thời gian")]
        public DateTime ThoiGian { get; set; }

        public virtual BaiViet BaiViet { get; set; }
        public virtual UserProfile UserProfile { get; set; }
    }
}